#include <iostream>
#include "aes_verify.h"

#define key		        "l58CXGW6noKNDjaV"				//秘钥
#define init_vector		"6wFlL1swXeeLVUmP"				//初始化向量
uint8_t plain[80]={0xAA,0x01,0x33,0x00,0x00,0x00,0x02,0x33,0x03,0x03,0x01,0x00,0x01,0x00,0x14,0x00,0x00,0x00,0x01,0x20,0x18,0x12,0x19,0x16,0x46,0x16,0x20,0x18,0x12,0x19,0x18,0x46,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x05,0x25,0x16,0x50,0x39,0x74,0x41,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x01,0x87,0x76,0x26,0x67,0x49,0x52,0x11,0x59,0x46,0x62,0x26,0x25,0x48,0x91,0x41};
uint8_t tmp[80];
uint8_t cipher[80]={0x0C,0xB1,0xF2,0x01,0xA4,0xC5,0xCE,0x7D,0xD1,0xFE,0xE3,0xBF,0xB9,0x65,0x28,0xCF,0x61,0x86,0x68,0x09,0xC3,0xAB,0xEC,0xD2,0x0B,0xD6,0xA5,0x40,0x61,0x7B,0xE2,0xE2,0x4D,0xD7,0x1D,0x1E,0xF8,0x22,0x55,0x5F,0xFA,0xFF,0x39,0x49,0xF1,0x5E,0x29,0x1D,0xBB,0x99,0xED,0xC0,0xAD,0xEF,0xCF,0x74,0xC5,0x97,0xFE,0x8D,0xCA,0x42,0x76,0xF4,0x7A,0xA6,0x83,0x74,0x19,0xCF,0x19,0xCD,0x3C,0x54,0x73,0xC8,0x77,0x61,0xF0,0x67};
int main() {

    aes_cbc_128_Decryption(cipher,(uint8_t*)key,(uint8_t*)init_vector,plain,80);
    hexdump(plain,80);

    aes_cbc_128_Encryption(plain,(uint8_t*)key,(uint8_t*)init_vector,tmp,80);
    hexdump(tmp,80);

    return 0;
}